export default {
  name: 'render',
  data () {
    return {
      list: ['red', 'green', 'blue']
    }
  },
  render (h) {
    return h('ul', {}, this.list.map(item => {
      return h('li', {
        key: item,
        on: {
          click: this.handleClick.bind(this, item)
        }
      }, item)
    }))
  },
  methods: {
    handleClick () {
      console.log(arguments)
    }
  }
}
